package org.me.bean;

import org.ksoap2.serialization.SoapObject;

import android.os.Parcel;
import android.os.Parcelable;

public class Instructor implements Parcelable{
	private String instructorId;
	private String instructorName;
	private String password;
	
	

	public Instructor() {
		super();
	}
	
	public Instructor(SoapObject obj){
		instructorId = obj.getPropertyAsString("instructorId");
		instructorName = obj.getPropertyAsString("instructorName");
		password = obj.getPropertyAsString("password");
	}

	public String getInstructorId() {
		return instructorId;
	}


	public void setInstructorId(String instructorId) {
		this.instructorId = instructorId;
	}


	public String getInstructorName() {
		return instructorName;
	}

	public void setInstructorName(String instructorName) {
		this.instructorName = instructorName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Instructor(String instructorId) {
		super();
		this.instructorId = instructorId;
	}


	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}


	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(instructorId);
		dest.writeString(instructorName);
		dest.writeString(password);
		
	}
	
	public static final Parcelable.Creator<Instructor> CREATOR = new Parcelable.Creator<Instructor>() {
		public Instructor createFromParcel(Parcel in) {
			return new Instructor(in);
		}

		public Instructor[] newArray(int size) {
			return new Instructor[size];
		}
	};

	public Instructor(Parcel in) {
		instructorId = in.readString();
		instructorName  = in.readString();
		password = in.readString();
	}
	
	
}
